<?php class Form_StoryForm extends Form_Custom_General {
        public function init() {

		$st_id = $this->createElement("hidden", "st_id")
                     ->setRequired(FALSE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter id")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"span6","placeholder"=>"Id"));
                     $this->addElement($st_id);

		$st_lgn_id = $this->createElement("hidden", "st_lgn_id")
                     ->setRequired(FALSE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter user name")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"span6","placeholder"=>"User Name"));
                     $this->addElement($st_lgn_id);

		$st_proj_id = $this->createElement("hidden", "st_proj_id")
                     ->setRequired(FALSE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter project name")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"span6","placeholder"=>"Project Name"));
                     $this->addElement($st_proj_id);

		$st_note = $this->createElement("textarea", "st_note")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter note")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"span6","rows"=>3, "placeholder"=>"Note"));
                     $this->addElement($st_note);

		
                $st_time_slot = $this->createElement("text", "st_time_slot")
                     #->setRequired(TRUE)
                     #->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter note")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"span6", "placeholder"=>"Time Slot"));
                     $this->addElement($st_time_slot);
                     
		

		
                     $st_status = $this->createElement("select", "st_status")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter status")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"span6","placeholder"=>"Status"));
                     $this->addElement($st_status);

		

		$submit = $this->createElement("submit", "Save")
                ->setAttribs(Array("title" => "Save changes", "class"=>"btn-glow primary"));
        $this->addElement($submit);


        $reset = $this->createElement("reset", "Reset")
                ->setAttribs(Array("title" => "Save changes and continue to edit", "class"=>"btn-glow primary"));
        $this->addElement($reset);   }
        }?>